from matplotlib import pyplot as plt

i = 0
def onclick(event):
    global i
    ix, iy = event.xdata, event.ydata
    ax = plt.gca()

    ax.plot(ix, iy, 'b*')
    ax.annotate(f"Clicked Point {i}", (ix,iy),color='Black')
    i += 1
    print(f'x = {ix}, y = {iy}')

    event.canvas.draw()

fig, ax = plt.subplots()
ax.set_xlim([0,10])
ax.set_ylim([0,10])

fig.canvas.callbacks.connect('button_press_event', onclick)
plt.show()